
import defaultSettings from '@/settings'
import request from '@/utils/request'

export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/bepsTimeService/bankNotePay/BankNotePayUpdate/search`,
}

//社会信用代码查询
export const payCodeQuerySearch = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManage/ClientPayPactManageEntry/payCodeQuerySearch`,
};

//社会信用代码查询
export const Cnaps2Netcode = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/cnaps2/Cnaps2Netcode/search`,
};

// 初始化查询
export function query() {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManage/ClientPayPactManageEntry/page`,
    method: 'get'
  })
}

// 提交
export function submit(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManage/ClientPayPactManageEntry/save`,
    method: 'post',
    data
  })
}

// 修改
export function modify(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/realTimeService/realTimeClientPayPactManage/ClientPayPactManageModify/save`,
    method: 'post',
    data
  })
}
